package cn.springBoot.delegate;

import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Component;

import java.util.logging.Logger;

@Component("test")
public class QualificationCheckerDelegate implements JavaDelegate {
    private final Logger LOGGER = Logger.getLogger(QualificationCheckerDelegate.class.getName());

    @Override
    public void execute(DelegateExecution execution) throws Exception {
        LOGGER.info("后台自动审核");


        String userName = (String) execution.getVariable("userName");
        String userId = (String) execution.getVariable("userId");
        LOGGER.info("userName"+userName);
        LOGGER.info("userId"+userId);
        execution.setVariable("approve", true);
    }




}
